﻿using System.Security.Cryptography;

namespace Framework.Core.Cryptography
{
    internal class RsaCryptoServiceProviderFactory : IRsaCryptoServiceProviderFactory
    {
        public RSACryptoServiceProvider Create(string application, string user)
        {
            var cp = new CspParameters { KeyContainerName = string.Format("{0}_{1}", application, user) };

            return new RSACryptoServiceProvider(2048, cp);
        }
    }
}
